<local:DocumentBase x:Class="WPFExcelReport.UBTWHAB55"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBDAT" 
                    xmlns:WBB="clr-namespace:WPFExcelReport;assembly=TWBBST" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:AF="clr-namespace:WPFExcelReport;assembly=TABFOLGE" 
                    xmlns:AE="clr-namespace:WPFExcelReport;assembly=TABARTE" 
                    xmlns:BB="clr-namespace:WPFExcelReport;assembly=TBABST" 
                    xmlns:GB="clr-namespace:WPFExcelReport;assembly=TGLLG" 
                      xmlns:BD="clr-namespace:WPFExcelReport;assembly=TBAAUF"
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                     xmlns:MAH="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    MinHeight="200"
                    MinWidth="200"
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1.5*"/>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0">
                <WD:TRWD02    
                           Name="cWD02"  
                          AUFART="VA" 
                           WDSA="V"
                           WZTYP="B"  
                           ARTST="R"     
                           IsShowAB="{Binding IsShowAB,ElementName=cAB55}"  
                           IsVV="False"/>
            </Grid>
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" >
                    <WD:TWDI2PR
                        dwWD="{Binding dwWD,ElementName=cDI}"
                        />
                    <WD:TDIWD02     Name="cDI"
                                    AUFART="DI" 
                                      WDSA="V"
                                     WZTYP="Z"  
                                    ARTST="R"     
                                    EXAUF="{Binding PRART,ElementName=cWD02}" />
                </StackPanel>
                <WD:TZPRWD02  Margin="0,10,0,0" Grid.Row="1" 
                             AUFART="PR"
                              WDSA="V"
                             WZTYP="Z"
                             ARTST="R"  
                             ABKAUFART="PR"
                             ABAUF ="{Binding ORDERNUM,ElementName=cAB55}"   
                             EXAUF="{Binding PRART,ElementName=cWD02}"
                             />

            </Grid>
        </Grid>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0">
                <AB:TWAB55PR   
                            Margin="20,0,0,0"
                                   IsAuto="False"
                                   POSTYP="PR "
                                    MAKE2ORD="False"
                                   Name="cAB55"  
                                  dwWS="{Binding dwWS,ElementName=TV}"
                         />
            </Grid>
            <Grid Grid.Column="1">
                <TabControl  >
                    <TabItem Header="{Binding Source={Localization:Translate Word=备注}}" Name="ZoneRemark">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition   Width="1*" />
                                <ColumnDefinition   Width="1*" />
                            </Grid.ColumnDefinitions>
                            <TXT:TXTITXBOX Grid.Column="0" Margin="0,0,0,0" 
                                          Name="SPT"
                                         TART="ABT"
                                         IsInfoOneLine="True"
                                         IsTXTBox="True" 
                                         IsEdit="{Binding IsEdit,ElementName=cAB55}"   
                                         IsSaved="{Binding IsSaved,ElementName=cAB55}"   
                                         SIND="{Binding TXTISIND,ElementName=cAB55}"   
                                         INFO="{Binding INFO,ElementName=cAB55}"   
                                         VerticalAlignment="Top"/>
                        </Grid>

                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=计划布卷}}"  Name="ZoneDIWB" >
                        <Grid  Grid.Row="1"  Grid.Column="1"    >
                            <Grid.RowDefinitions>
                                <RowDefinition   Height="Auto" />
                                <RowDefinition   Height="1*" />
                            </Grid.RowDefinitions>
                            <WBB:TWBDI2PR  Grid.Row="1"
                                PRTYPE="UBTWVLB"
                                    IsCanLoad="{Binding IsSelected,ElementName=ZoneDIWB}"
                                      dwAB="{Binding dwAB,ElementName=cAB55}"
                                     EXAUF="{Binding ABAUF,ElementName=cDI}"/>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=布卷清单}}"  Name="ZonePRWB" >
                        <Grid Grid.Row="1" Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition   Height="Auto" />
                                <RowDefinition   Height="1*" />
                            </Grid.RowDefinitions>
                            <WBB:TPRWB25  Grid.Row="1" Name="PWB"
                                            IsCanLoad="{Binding IsSelected,ElementName=ZonePRWB}"
                                            PRTYPE="UBTWVLB"
                                            INFO="{Binding INFO,ElementName=cAB55}"  
                                          ORDERNUM="{Binding RULEKEY,ElementName=cAB55}"
                                            EXAUF="{Binding ABAUF,ElementName=cAB55}"/>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=织轴计划}}" Name="ZoneBeam">
                        <Grid Grid.Row="1" Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition   Height="Auto" />
                                <RowDefinition   Height="1*" />
                            </Grid.RowDefinitions>
                            <BD:TBD02  Grid.Row="0"  
                               Name="cBD02"
                                   IsCanLoad="{Binding IsSelected,ElementName=ZoneBeam}"
                               EXAUF="{Binding KEY,ElementName=cAB55}"/>
                            <BB:TBZ02 Grid.Row="1"
                          EXAUF="{Binding ElementName=cBD02, Path=WARP}" />
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=纬纱计划}}" Name="ZoneWeft">
                        <Grid Grid.Row="1" Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition   Height="Auto" />
                                <RowDefinition   Height="1*" />
                            </Grid.RowDefinitions>
                            <GD:TGD733  Grid.Row="0"
                                    IsCanLoad="{Binding IsSelected,ElementName=ZoneWeft}"
                                    Name="cGD"
                                    EXAUF="{Binding KEY,ElementName=cAB55}"
                                    />
                            <Grid Grid.Row="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition   Height="Auto" />
                                    <RowDefinition   Height="1*" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="1*"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="1*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <GB:TGLLG   Grid.Row="0" Grid.Column="0" Grid.RowSpan="2"
                                    VerticalAlignment="Top"
                                    dwReq="{Binding dwGD,ElementName=cYGA}"
                                   dwGD="{Binding dwGD,ElementName=cGD}"
                                    />
                                <GD:YARNA     Grid.Row="0" Grid.Column="1"  Grid.RowSpan="2"
                                  FTAUTOSUM="True"
                                  SKEY1="GAART"
                                  KEY1="QFREE"
                                  LMMU="N"
                         Name="cYGA"  VerticalAlignment="Top"
                        dwReq="{Binding dwGD,ElementName=cYGD}"            
                    />
                                <Grid  Grid.Row="0" Grid.Column="2"  Grid.RowSpan="2">
                                    <Grid.RowDefinitions>
                                        <RowDefinition   Height="1*" />
                                        <RowDefinition   Height="1*" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="1*"></ColumnDefinition>
                                        <ColumnDefinition Width="1*"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>

                                    <GD:Y3TGAAUF Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                                  Name="cYGD"
                                  EXTMU="SM"
                                  dwReq="{Binding dwGD,ElementName=cGD}"
                                  POSTYP="{Binding POSTYP,ElementName=cGD}"  />
                                    <GD:XZUTEI   Grid.Row="1" Grid.Column="0"  
                                 Name="cZU" VerticalAlignment="Top"
                                dwReq="{Binding dwGD,ElementName=cYGA}"            
                            />
                                    <GD:XGAAUF   Grid.Row="1" Grid.Column="1" 
                             Name="cXGD"  VerticalAlignment="Top"
                            dwReq="{Binding dwGD,ElementName=cYGA}"            
                        />
                                </Grid>
                            </Grid>
                        </Grid>
                    </TabItem> 
                    <TabItem Header="{Binding Source={Localization:Translate Word=步骤}}" Name="ZoneABF" >
                        <Grid >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <AF:TAB10 Grid.Column="0" Name="cABF"
                                  IsCanLoad="{Binding IsSelected,ElementName=ZoneABF}"
                                 EXAUF="{Binding KEY,ElementName=cAB55}"/>
                            <AE:TRABE  Grid.Column="1" 
                                 EXAUF="{Binding KEY,ElementName=cABF}"/>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=面料档案}}">
                        <WS:TWLWS03
                        ORDERNUM="{Binding PRART,ElementName=cAB55}"
                        dwWS="{Binding dwWS,ElementName=cAB55}"
                        />
                    </TabItem>
                </TabControl>
            </Grid>
        </Grid>
    </Grid>
</local:DocumentBase>
    
